package com.tsintergy.tmosguide.casemng.web.base.controller;

import com.tsieframework.core.base.dao.DataPackage;
import com.tsieframework.core.base.web.BaseResp;
import com.tsieframework.core.base.web.BaseRespBuilder;
import com.tsintergy.tmosguide.casemng.core.CasemngConfigConstants;
import com.tsintergy.tmosguide.casemng.serviceapi.base.pojo.CmgBaseCaseInfoDO;
import com.tsintergy.tmosguide.casemng.web.base.controller.request.caseinfomng.CreateCaseRequest;
import com.tsintergy.tmosguide.casemng.web.base.controller.request.caseinfomng.QueryCaseRequest;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

@Api(value = "案例管理", tags = "案例管理")
@RestController
@RequestMapping(CasemngConfigConstants.MAPPING_PREFIX + "/caseinfo")
public class CaseInfoController {

    @ApiOperation("创建案例")
    @PostMapping("/createCase")
    public BaseResp<CmgBaseCaseInfoDO> createCase(@RequestBody CreateCaseRequest request) {
        return null;
    }

    @ApiOperation("获取案例基本信息")
    @GetMapping("/getCase")
    public BaseResp<CmgBaseCaseInfoDO> getCase(String caseId) {
        return null;
    }

    @ApiOperation("删除案例")
    @DeleteMapping("/deleteCase")
    public BaseResp<Void> deleteCase(String caseId) {
        return null;
    }

    @ApiOperation("查询案例")
    @GetMapping("/queryCase")
    public BaseResp<DataPackage<CmgBaseCaseInfoDO>> queryCase(QueryCaseRequest request) {
        return null;
    }

}
